//
//  JixiangTableViewCell.m
//  ClassifyShop
//
//  Created by yuyao on 15/4/7.
//  Copyright (c) 2015年 yuyao. All rights reserved.
//

#import "JixiangTableViewCell.h"
#import "GUIDefine.h"
@implementation JixiangTableViewCell
@synthesize imageView1,imageView2,titleLabel1,titleLabel2,shoucangImage1,shoucangLabel1,shoucangLabel2,shoucangImage2;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        [self setBackgroundColor:[UIColor whiteColor]];
        imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kAppScreenWidth/2, self.frame.size.height)];
        [imageView1 setBackgroundColor:[UIColor redColor]];
        [self addSubview:imageView1];

        imageView2 = [[UIImageView alloc] initWithFrame:CGRectMake(kAppScreenWidth/2, 0, kAppScreenWidth/2, self.frame.size.height)];
        [imageView2 setBackgroundColor:[UIColor blueColor]];
        [self addSubview:imageView2];
        

        UIView  *alphaGrayBottomView = [[UIView alloc] initWithFrame:CGRectMake(0,self.frame.size.height-25 , kAppScreenWidth-100, 25)];
        [alphaGrayBottomView setBackgroundColor:[[UIColor grayColor] colorWithAlphaComponent:0.5]];
        [self addSubview:alphaGrayBottomView];
        
        UIFont *fnt = [UIFont fontWithName:@"Arial" size:12.0f];
      
        titleLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(10, 0,70, 25)];
        [titleLabel1 setFont:fnt];
        [titleLabel1 setTextColor:[UIColor whiteColor]];
        
        
        [alphaGrayBottomView addSubview:titleLabel1];

        
        titleLabel2 = [[UILabel alloc] initWithFrame:CGRectMake(kAppScreenWidth/2+10, 0,70, 25)];
        [titleLabel2 setFont:fnt];
        [titleLabel2 setTextColor:[UIColor whiteColor]];
        
        
        [alphaGrayBottomView addSubview:titleLabel2];
        
        
        shoucangImage1  = [[UIImageView alloc] initWithFrame:CGRectMake(alphaGrayBottomView.frame.size.width/2-50, 4, 17, 17)];
        [alphaGrayBottomView addSubview:shoucangImage1];
        
        shoucangLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(alphaGrayBottomView.frame.size.width/2-30, 0, 30, 25)];
        [shoucangLabel1 setTextColor:[UIColor whiteColor]];
        [shoucangLabel1 setFont:[UIFont fontWithName:@"Arial" size:12]];
        [alphaGrayBottomView addSubview:shoucangLabel1];
        
        shoucangImage2  = [[UIImageView alloc] initWithFrame:CGRectMake(alphaGrayBottomView.frame.size.width-50, 4, 17, 17)];
        [alphaGrayBottomView addSubview:shoucangImage2];
        
        shoucangLabel2 = [[UILabel alloc] initWithFrame:CGRectMake(alphaGrayBottomView.frame.size.width-30, 0, 30, 25)];
        [shoucangLabel2 setTextColor:[UIColor whiteColor]];
        [shoucangLabel2 setFont:[UIFont fontWithName:@"Arial" size:12]];
        [alphaGrayBottomView addSubview:shoucangLabel2];
        
    
        
    }
    
    return self;
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
